# Menu 12 − User Functions 2

Mode: Regeneration

Parameter | 12.001 Threshold Detector 1 Output
--- | ---
Short description | Displays the output of threshold detector 1
Mode | Regeneration
Minimum | 0 | Maximum | 1
Default |  | Units |
Type | 1 Bit Volatile | Update Rate | 4ms write
Display Format | Standard | Decimal Places | 0
Coding | RO, ND, NC, PT

The threshold detector functions are always active even if the source and destination are not routed to valid parameters. If the source is not a valid parameter then the source value is taken as 0. The update rate for each of the threshold detector functions is always 4ms.

The following description is for threshold detector 1, but threshold detector 2 operates in the same way. The level of the parameter defined by Threshold Detector 1 Source (12.003) is converted to a percentage and compared to Threshold Detector 1 Level (12.004) with hysteresis to give Threshold Detector 1 Output (12.001) as follows:

Source | Threshold Detector 1 Output (12.001)
Source | 0
Lower threshold ≤ Source | No change of state
Source ≥ Upper threshold | 1

Lower threshold = Threshold Detector 1 Level (12.004) - Threshold Detector 1 Hysteresis (12.005)
Upper threshold = Threshold Detector 1 Level (12.004) + Threshold Detector 1 Hysteresis (12.005)

The output value can then be inverted with Threshold Detector 1 Output Invert (12.006) before being routed to the destination defined by Threshold Detector 1 Destination (12.007).

Parameter | 12.002 Threshold Detector 2 Output
--- | ---
Short description | Displays the output of threshold detector 1
Mode | Regeneration
Minimum | 0 | Maximum | 1
Default |  | Units |
Type | 1 Bit Volatile | Update Rate | 4ms write
Display Format | Standard | Decimal Places | 0
Coding | RO, ND, NC, PT

See Threshold Detector 1 Output (12.001).

Parameter | 12.003 Threshold Detector 1 Source
--- | ---
Short description | Defines the source paramter for threshold detector 1
Mode | Regeneration
Minimum | 0.000 | Maximum | 59.999
Default | 0.000 | Units |
Type | 16 Bit User Save | Update Rate | Drive reset read
Display Format | Standard | Decimal Places | 3
Coding | RW, PT, BU

See Threshold Detector 1 Output (12.001).

Parameter | 12.004 Threshold Detector 1 Level
--- | ---
Short description | Defines the reference level for threshold detector 1
Mode | Regeneration
Minimum | 0.00 | Maximum | 100.00
Default | 0.00 | Units | %
Type | 16 Bit User Save | Update Rate | 4ms read
Display Format | Standard | Decimal Places | 2
Coding | RW

See Threshold Detector 1 Output (12.001).

Parameter | 12.005 Threshold Detector 1 Hysteresis
--- | ---
Short description | Defines the hysteresis for threshold detector 1
Mode | Regeneration
Minimum | 0.00 | Maximum | 25.00
Default | 0.00 | Units | %
Type | 16 Bit User Save | Update Rate | 4ms read
Display Format | Standard | Decimal Places | 2
Coding | RW

See Threshold Detector 1 Output (12.001).

Parameter | 12.006 Threshold Detector 1 Output Invert
--- | ---
Short description | Set to 1 to invert the output of threshold detector 1
Mode | Regeneration
Minimum | 0 | Maximum | 1
Default | 0 | Units |
Type | 1 Bit User Save | Update Rate | 4ms read
Display Format | Standard | Decimal Places | 0
Coding | RW

See Threshold Detector 1 Output (12.001).

Parameter | 12.007 Threshold Detector 1 Destination
--- | ---
Short description | Defines the destination parameter for threshold detector 1
Mode | Regeneration
Minimum | 0.000 | Maximum | 59.999
Default | 0.000 | Units |
Type | 16 Bit User Save | Update Rate | Drive reset read
Display Format | Standard | Decimal Places | 3
Coding | RW, DE, PT, BU

See Threshold Detector 1 Output (12.001).

Parameter | 12.008 Variable Selector 1 Source 1
--- | ---
Short description | Defines the 1st source parameter for variable selector 1
Mode | Regeneration
Minimum | 0.000 | Maximum | 59.999
Default | 0.000 | Units |
Type | 16 Bit User Save | Update Rate | Drive reset read
Display Format | Standard | Decimal Places | 3
Coding | RW, PT, BU

The variable selector functions are always active even if the source and destination are not routed to valid parameters. If a source is not a valid parameter then the source value is taken as 0. The update rate for each of the variable selector functions is always 4ms.

The following description is for variable selector 1, but variable selector 2 operates in the same way. The source parameters selected with Variable Selector 1 Source 1 (12.008) and Variable Selector 1 Source 2 (12.009) are converted to a percentage value, scaled with Variable Selector 1 Source 1 Scaling (12.013) and Variable Selector 1 Source 2 Scaling (12.014) respectively and then combined with a function defined by Variable Selector 1 Mode (12.010) to give Variable Selector 1 Output (12.012) as a percentage value. If Variable Selector 1 Enable (12.016) = 1 then the function operates normally. If Variable Selector 1 Enable (12.016) = 0 then Variable Selector 1 Output (12.012) = 0.00% and any states within the function are reset (i.e. the time constant function accumulator is held at zero). If the value of Variable Selector 1 Mode (12.010) is changed then all internal function state are also reset.

The table below shows the functions that can be selected with Variable Selector 1 Mode (12.010).

Variable Selector 1 Mode (12.010) | Variable Selector 1 Output (12.012)
0: Input 1 | Input 1
1: Input 2 | Input 2
2: Add | Input 1 + Input 2
3: Subtract | Input 1 - Input 2
4: Multiply | (Input 1 x Input 2) / 100.00%
5: Divide | (Input 1 x 100.00%) / Input 2
6: Time Const | Input 1 / (1 + τs) where τ = Variable Selector 1 Control (12.015) seconds
7: Ramp | Input 1 as an input to a linear ramp function where the time to ramp from 0.00% to 100.00% is defined by Variable Selector 1 Control (12.015) seconds
8: Modulus | |Input1|
9: Powers | If Variable Selector 1 Control (12.015) = 0.02 then Input2 / 100.00% Else if Variable Selector 1 Control (12.015) = 0.03 then Input3 / 100.00% Else Input 1
10: Sectional | See description below

Sectional Controller

If Variable Selector 1 Mode (12.010) = 10 then the variable selector can be used to provide a sectional control function. (Variable selector 2 operates in the same way.) The sectional control function is intended to apply scaling and a speed offset to a 16 bit position value to generate a new 16 bit position value. The output can be used as an input to the Standard motion controller (Menu 13) and to generate an encoder simulation output (Menu 3).

The position input is selected with Variable Selector 1 Source 1 (12.008) and can be derived from any parameter. However, it is intended to be used with a position value that has a range from 0 to 65535 (e.g. P1 Position (03.029)). The input is scaled so that as Variable Selector 1 Source 1 Scaling (12.013) is changed between -4.000 and 4.000 so the proportion of the input position change added to the accumulator varies from 0.000 to 2.000 (i.e. the change of position input value is added without scaling if Variable Selector 1 Source 1 Scaling (12.013) = 0.000). The remainder from the scaling division is stored and then added at the next sample to maintain an exact ratio between the position input and the position output, provided the speed from source 2 is zero. The controller only takes the change of position from the input source parameter, and not the absolute value, so that when the controller is first made active the output does not jump to the source position, but only moves with any changes of source position after that point in time.

The range of Variable Selector 1 Output (12.012) is 0.00% and 100.00%. Unlike other functions the value is not simply limited, but rolls under or over respectively. Although the output destination can be any parameter it is intended to be used with a position value that has a range from 0 to 65535.

The speed input defines a speed offset with a resolution of 0.1rpm. Full scale of the source parameter corresponds to 1000.0rpm. Scaling may be applied using Variable Selector 1 Source 2 Scaling (12.014) to give a full scale value up to 4000.0rpm. The speed input is added to the accumulator to move the output position forwards or backwards with respect to the position input.

The sample time for the variable selector is 4ms and the input or output position must not change by more than half a revolution over this time. Therefore the input or output speed must not exceed 7500rpm.

The diagram below shows an example of how the sectional controller function could be configured. The section input position is provided from the previous section via the P1 position feedback interface. The destination of the variable selector is the Standard Motion Local Reference Position (13.021) in the standard motion controller which is used to provide the speed reference and to control the local motor attached to the drive. The encoder simulation system is used to generate the section output to be fed into the next drive. The source for the encoder simulation is Standard Motion Local Reference Position (13.021).

Parameter | 12.009 Variable Selector 1 Source 2
--- | ---
Short description | Defines the 2nd source parameter for variable selector 1
Mode | Regeneration
Minimum | 0.000 | Maximum | 59.999
Default | 0.000 | Units |
Type | 16 Bit User Save | Update Rate | Drive reset read
Display Format | Standard | Decimal Places | 3
Coding | RW, PT, BU

See Variable Selector 1 Source 1 (12.008).

Parameter | 12.010 Variable Selector 1 Mode
--- | ---
Short description | Defines the mode for variable selector 1
Mode | Regeneration
Minimum | 0 | Maximum | 10
Default | 0 | Units |
Type | 8 Bit User Save | Update Rate | Background read
Display Format | Standard | Decimal Places | 0
Coding | RW, TE

Value | Text
0 | Input 1
1 | Input 2
2 | Add
3 | Subtract
4 | Multiply
5 | Divide
6 | Time Const
7 | Ramp
8 | Modulus
9 | Powers
10 | Sectional

See Variable Selector 1 Source 1 (12.008).

Parameter | 12.011 Variable Selector 1 Destination
--- | ---
Short description | Defines the destination parameter for variable selector 1
Mode | Regeneration
Minimum | 0.000 | Maximum | 59.999
Default | 0.000 | Units |
Type | 16 Bit User Save | Update Rate | Drive reset read
Display Format | Standard | Decimal Places | 3
Coding | RW, DE, PT, BU

See Variable Selector 1 Source 1 (12.008).

Parameter | 12.012 Variable Selector 1 Output
--- | ---
Short description | Displays the output of variable selector 1
Mode | Regeneration
Minimum | -100.00 | Maximum | 100.00
Default |  | Units | %
Type | 16 Bit Volatile | Update Rate | 4ms write
Display Format | Standard | Decimal Places | 2
Coding | RO, ND, NC, PT

See Variable Selector 1 Source 1 (12.008).

Parameter | 12.013 Variable Selector 1 Source 1 Scaling
--- | ---
Short description | Defines the scaling for the 1st input for variable selector 1
Mode | Regeneration
Minimum | -4.000 | Maximum | 4.000
Default | 1.000 | Units |
Type | 16 Bit User Save | Update Rate | 4ms read
Display Format | Standard | Decimal Places | 3
Coding | RW

See Variable Selector 1 Source 1 (12.008).

Parameter | 12.014 Variable Selector 1 Source 2 Scaling
--- | ---
Short description | Defines the scaling for the 2nd input for variable selector 1
Mode | Regeneration
Minimum | -4.000 | Maximum | 4.000
Default | 1.000 | Units |
Type | 16 Bit User Save | Update Rate | 4ms read
Display Format | Standard | Decimal Places | 3
Coding | RW

See Variable Selector 1 Source 1 (12.008).

Parameter | 12.015 Variable Selector 1 Control
--- | ---
Short description | Defines the control for variable selector 1
Mode | Regeneration
Minimum | 0.00 | Maximum | 100.00
Default | 0.00 | Units |
Type | 16 Bit User Save | Update Rate | 4ms read
Display Format | Standard | Decimal Places | 2
Coding | RW

See Variable Selector 1 Source 1 (12.008).

Parameter | 12.016 Variable Selector 1 Enable
--- | ---
Short description | Enables variable selector 1
Mode | Regeneration
Minimum | 0 | Maximum | 1
Default | 1 | Units |
Type | 1 Bit User Save | Update Rate | 4ms read
Display Format | Standard | Decimal Places | 0
Coding | RW, BU

See Variable Selector 1 Source 1 (12.008) for more details.

Variable Selector 1 Enable (12.016) and Variable Selector 2 Enable (12.036) have a default of 1 so that if these parameters are not used the variable selectors will still function.

Parameter | 12.023 Threshold Detector 2 Source
--- | ---
Short description | Defines the source paramter for threshold detector 2
Mode | Regeneration
Minimum | 0.000 | Maximum | 59.999
Default | 0.000 | Units |
Type | 16 Bit User Save | Update Rate | Drive reset read
Display Format | Standard | Decimal Places | 3
Coding | RW, PT, BU

See Threshold Detector 1 Output (12.001).

Parameter | 12.024 Threshold Detector 2 Level
--- | ---
Short description | Defines the reference level for threshold detector 2
Mode | Regeneration
Minimum | 0.00 | Maximum | 100.00
Default | 0.00 | Units |
Type | 16 Bit User Save | Update Rate | 4ms read
Display Format | Standard | Decimal Places | 2
Coding | RW

See Threshold Detector 1 Output (12.001).

Parameter | 12.025 Threshold Detector 2 Hysteresis
--- | ---
Short description | Defines the hysteresis for threshold detector 2
Mode | Regeneration
Minimum | 0.00 | Maximum | 25.00
Default | 0.00 | Units |
Type | 16 Bit User Save | Update Rate | 4ms read
Display Format | Standard | Decimal Places | 2
Coding | RW

See Threshold Detector 1 Output (12.001).

Parameter | 12.026 Threshold Detector 2 Output Invert
--- | ---
Short description | Set to 1 to invert the output of threshold detector 2
Mode | Regeneration
Minimum | 0 | Maximum | 1
Default | 0 | Units |
Type | 1 Bit User Save | Update Rate | 4ms read
Display Format | Standard | Decimal Places | 0
Coding | RW

See Threshold Detector 1 Output (12.001).

Parameter | 12.027 Threshold Detector 2 Destination
--- | ---
Short description | Defines the destination parameter for threshold detector 2
Mode | Regeneration
Minimum | 0.000 | Maximum | 59.999
Default | 0.000 | Units |
Type | 16 Bit User Save | Update Rate | Drive reset read
Display Format | Standard | Decimal Places | 3
Coding | RW, DE, PT, BU

See Threshold Detector 1 Output (12.001).

Parameter | 12.028 Variable Selector 2 Source 1
--- | ---
Short description | Defines the 1st source parameter for variable selector 2
Mode | Regeneration
Minimum | 0.000 | Maximum | 59.999
Default | 0.000 | Units |
Type | 16 Bit User Save | Update Rate | Drive reset read
Display Format | Standard | Decimal Places | 3
Coding | RW, PT, BU

See Variable Selector 1 Source 1 (12.008).

Parameter | 12.029 Variable Selector 2 Source 2
--- | ---
Short description | Defines the 2nd source parameter for variable selector 2
Mode | Regeneration
Minimum | 0.000 | Maximum | 59.999
Default | 0.000 | Units |
Type | 16 Bit User Save | Update Rate | Drive reset read
Display Format | Standard | Decimal Places | 3
Coding | RW, PT, BU

See Variable Selector 1 Source 1 (12.008).

Parameter | 12.030 Variable Selector 2 Mode
--- | ---
Short description | Defines the mode for variable selector 2
Mode | Regeneration
Minimum | 0 | Maximum | 10
Default | 0 | Units |
Type | 8 Bit User Save | Update Rate | Background read
Display Format | Standard | Decimal Places | 0
Coding | RW, TE

Value | Text
0 | Input 1
1 | Input 2
2 | Add
3 | Subtract
4 | Multiply
5 | Divide
6 | Time Const
7 | Ramp
8 | Modulus
9 | Powers
10 | Sectional

See Variable Selector 1 Source 1 (12.008).

Parameter | 12.031 Variable Selector 2 Destination
--- | ---
Short description | Defines the destination parameter for variable selector 2
Mode | Regeneration
Minimum | 0.000 | Maximum | 59.999
Default | 0.000 | Units |
Type | 16 Bit User Save | Update Rate | Drive reset read
Display Format | Standard | Decimal Places | 3
Coding | RW, DE, PT, BU

See Variable Selector 1 Source 1 (12.008).

Parameter | 12.032 Variable Selector 2 Output
--- | ---
Short description | Displays the output of variable selector 2
Mode | Regeneration
Minimum | -100.00 | Maximum | 100.00
Default |  | Units | %
Type | 16 Bit Volatile | Update Rate | 4ms write
Display Format | Standard | Decimal Places | 2
Coding | RO, ND, NC, PT

See Variable Selector 1 Source 1 (12.008).

Parameter | 12.033 Variable Selector 2 Source 1 Scaling
--- | ---
Short description | Defines the scaling for the 1st input for variable selector 2
Mode | Regeneration
Minimum | -4.000 | Maximum | 4.000
Default | 1.000 | Units |
Type | 16 Bit User Save | Update Rate | 4ms read
Display Format | Standard | Decimal Places | 3
Coding | RW

See Variable Selector 1 Source 1 (12.008).

Parameter | 12.034 Variable Selector 2 Source 2 Scaling
--- | ---
Short description | Defines the scaling for the 2nd input for variable selector 2
Mode | Regeneration
Minimum | -4.000 | Maximum | 4.000
Default | 1.000 | Units |
Type | 16 Bit User Save | Update Rate | 4ms read
Display Format | Standard | Decimal Places | 3
Coding | RW

Parameter | 12.035 Variable Selector 2 Control
--- | ---
Short description | Defines the control for variable selector 2
Mode | Regeneration
Minimum | 0.00 | Maximum | 100.00
Default | 0.00 | Units |
Type | 16 Bit User Save | Update Rate | 4ms read
Display Format | Standard | Decimal Places | 2
Coding | RW

See Variable Selector 1 Source 1 (12.008).

Parameter | 12.036 Variable Selector 2 Enable
--- | ---
Short description | Enables variable selector 2
Mode | Regeneration
Minimum | 0 | Maximum | 1
Default | 1 | Units |
Type | 1 Bit User Save | Update Rate | 4ms read
Display Format | Standard | Decimal Places | 0
Coding | RW, BU

See Variable Selector 1 Source 1 (12.008).